
import sys
from time import time
from arp import run

ips = ['10.1.11.13', '10.1.11.1']

if len(sys.argv) < 3:
  print "arps-time.py [timeout en seg.] [interface]"
  exit()
else:
  tout = int(sys.argv[1])
  inter = sys.argv[2]

  t0 = time()
  t1 = time()

  while t1-t0 < tout:
    for ip in ips:
      run(ip, inter)
    t1 = time()	
